<fieldset class='sideBySide'>
{$form->getElement('application')->render()}
{$form->getElement('controller')->render()}
{$form->getElement('method')->render()}
{$form->getElement('tarefa[version]')->render()}
{$form->getElement('tarefa[id_tarefa]')->render()}
<div class="control-group">
	{$form->getElement('tarefa[tipo]')->getLabel()->render()}
	<div class="controls">
		{$form->getElement('tarefa[tipo]')->render()}
	</div>
</div>
<div class="control-group">
	{$form->getElement('tarefa[dt_prazo]')->getLabel()->render()}
	<div class="controls">
		<div class="input-append">
			{$form->getElement('tarefa[dt_prazo]')->render()}
		</div>
	</div>
</div>
<div class="control-group">
	{$form->getElement('tarefa[equipe]')->getLabel()->render()}
	<div class="controls">
		{$form->getElement('tarefa[equipe]')->render()}
	</div>
</div>
<div class="control-group">
	{$form->getElement('tarefa[ds_titulo]')->getLabel()->render()}
	<div class="controls">
		{$form->getElement('tarefa[ds_titulo]')->render()}
	</div>
</div>
<div class="control-group">
	{$form->getElement('tarefa[ds_tarefa]')->getLabel()->render()}
	<div class="controls">
		{$form->getElement('tarefa[ds_tarefa]')->render()}
	</div>
</div>
</fieldset>

<div id="myModalHeader">
	{if $tarefa->getIdTarefa() == ''}
		<h3>Cadastrar Tarefa</h3>
	{else}
		<h3>Atualizar Tarefa #{$tarefa->getIdTarefa()}</h3>
	{/if}
</div>
<div id="myModalFooter">
	{$form->getElement('salvar')->render()}
</div>

{literal}
	<script type="text/javascript">
		$(document).ready(function() {
			initModal();
			initRichEditor();
			initDatePicker('.datepicker');
		})
	</script>
{/literal}